/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 *
 * @author Matthy & Jelle
 */
@Entity
@Table(name="T_TIENBEURTENKAART")
public class TienBeurtenKaart {
  @Id @GeneratedValue(strategy= GenerationType.IDENTITY)
  private Integer id;
  @ManyToOne(optional=false, cascade=javax.persistence.CascadeType.PERSIST)
  @Cascade(CascadeType.SAVE_UPDATE)
  @JoinColumn(name="verkoop_id")
  private Verkoop verkoop;
  private Integer resterend;
  private Integer prijs;

  public Integer getId() {
    return id;
  }

  public Verkoop getVerkoop() {
    return verkoop;
  }

  public Integer getResterend() {
    return resterend;
  }

  public Integer getPrijs() {
    return prijs;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public void setVerkoop(Verkoop verkoop) {
    this.verkoop = verkoop;
  }

  public void setResterend(Integer resterend) {
    this.resterend = resterend;
  }

  public void setPrijs(Integer prijs) {
    this.prijs = prijs;
  }


}
